import { getDaList } from './market'
import { goodsPage, getGoodTypeList,getshopCartList } from './sale'
import http from '@/utils/http'
import { getAccount, getVip } from './custom'
/**
 * 获取首页数据
 * @param goodsPageData 
 * @param goodTypePage 
 */
export const getIndexAsyn = async (goodsPageData: any) => {
  return http.all(getDaList('WECHAT_HOME_POLL'), goodsPage(goodsPageData), getGoodTypeList(""), getDaList('WECHAT_HOME_WAIST'))
}

/**
 * 我的页面信息预加载
 */
export const getShopCartAsyn = async (goodsPageData:any) => {
  return http.all(goodsPage(goodsPageData),getshopCartList())
}

/**
 * 我的页面信息预加载
 */
export const getMineAsyn = async () => {
  return http.all(getAccount(), getVip())
}